package com.aia.ilp.service;

import java.util.List;

import com.aia.ilp.domain.CALCExample;
import com.aia.ilp.domain.Cust;
import com.aia.ilp.domain.CustExample;
import com.aia.ilp.domain.HistoryExample;
import com.aia.ilp.domain.Image;
import com.aia.ilp.domain.Thumb;
import com.aia.ilp.web.NewsAction;
import com.aia.ilp.web.NewsitemAction;
import com.aia.ilp.web.PublicUploadAction;
import com.aia.ilp.web.ShowAction;
import com.aia.ilp.web.gift.GetAction;
import com.aia.ilp.web.gift.UpdateAction;
import com.aia.ilp.web.json.CustomerActJson;
import com.aia.ilp.web.json.CustomerCalcJson;
import com.aia.ilp.web.json.CustomerConfirmJson;
import com.aia.ilp.web.json.CustomerGetQuestionJson;
import com.aia.ilp.web.json.CustomerRegJson;
import com.aia.ilp.web.json.CustomerResetPasswordJson;
import com.aia.ilp.web.json.CustomerSmsJson;
import com.aia.ilp.web.json.CustomerVoteJson;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ValidationAware;

public interface MainService {

	public void saveImage(Image record);

	public void saveThumb(Thumb record);

	public Image getImage(String guid);

	public Thumb getThumb(String guid);

	public void sanityTestdb(ValidationAware action);

	public List getSmslogToday(String mobile);

	public void sendSMS(String mobile, String cityCode, String verifyCode, String mail);

	public void updateverifyCodeForCust(String custGUID, String verifyCode);

	public List getActivedCustsByMobile(String mobile);

	public List getAllCustsByMobile(String mobile);

	public List selectCust(CustExample example, int start, int limit);

	public int countCust(CustExample example);

	public void sanityTestnewcustdb(ActionSupport actionSupport);

	public Cust custLogin(String username, String password);

	public void prepareTopCusts(Object object);

	public void prepareLatestCusts(Object object);

	public void sanityTestnewcustdbDelete(ActionSupport actionSupport);

	public void validateMobileExist(CustomerRegJson actionSupport);

	public void validateEmailExist(CustomerRegJson actionSupport);

	public void insertCustByReg(CustomerRegJson customerRegJson);

	public void getGiftStatus(GetAction getAction);

	public void updateGiftStatus(UpdateAction updateAction);

	public void updateCustSendSMS(CustomerSmsJson customerSmsJson);

	public void updateCustByAct(CustomerActJson customerActJson);

	public Thumb getThumbByMail(String mail);

	public Image getImageByMail(String mail);

	public void updateVote(CustomerVoteJson customerVoteJson);

	public void updateDreamPic(PublicUploadAction publicUploadAction);

	public void updateCustByConfirm(CustomerConfirmJson customerConfirmJson);
	
	public void prepareTopCusts() ;

	public void selectCustByShow(ShowAction showAction);

	public void updateCalc(CustomerCalcJson customerCalcJson);

	public int deleteCustByPrimaryKey(String string);

	public void customerGetQuestion(CustomerGetQuestionJson customerGetQuestionJson);

	public void updateCustomerResetPassword(CustomerResetPasswordJson customerResetPasswordJson);

	public List selectCustByExample(CustExample example);

	public List selectCALCByExample(CALCExample example);

	public List selectHistoryByExample(HistoryExample example);

	public void prepareTopNews(NewsAction newsAction);

	public void selectOneNews(NewsitemAction newsitemAction);


}
